import { JIA } from "../actionTypes"

const initState = []

export default (state = initState, action) => {

    const { type, data } = action
    switch (type) {
        case JIA:  
            return [...state,{data}]
        default:
            return state
    }
}